<template>
  <view class="">
    Demo2页面
    <navigator url="/pages/demo/demo">demo跳转</navigator>
    <button @click="goBack">返回</button>
  </view>
</template>

<script setup>
  import { ref, computed } from 'vue'
  import { onLoad } from '@dcloudio/uni-app'
  onLoad(e => {
    console.log(e)
    console.log(getCurrentPages())
  })

  const goBack = () => {
    uni.navigateBack()
  }
</script>

<style lang="scss">

</style>